Release 10.1A: OpenEdge Development:
Programming Interfaces
Setting node attributes and values
You can set the attributes of a node or the value of a node either before or after it is appended by using the
SET-ATTRIBUTE( )method or theNODE-VALUEattribute. The following code fragment depicts setting attributes of the “employee”ELEMENTnode with theSET-ATTRIBUTE( )method and setting the value of the “address”TEXTnode with theNODE-VALUEattribute. Both objects areX-noderefobjects. Note that in this case, the “employee” node is a child of the root node and the “address” node is a child of the “employee” node:
For more information on attributes and methods associated with the
X-documentobject and theX-noderefobject, see their entries in the OpenEdge Development: Progress 4GL Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |